<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link charset="utf-8" rel="stylesheet" type="text/css" href="/static/ali/ali.css" />
<link charset="utf-8" rel="stylesheet" type="text/css" href="/static/ali/index.css" />
<title>友利钱包商家中心-账户管理</title>
</head>
<body>
	#include("common/header.html", site="index")

	<div class="content">
		<div class="content-wrapper">
			<div class="content-left">
				<div class="customer">
					<div class="customer-title">
						<span class="account-no">#(account.accountNo)</span>
						<span><img alt="" src="/static/ali/images/HtIxwnPAPOflIfrtZELR.png"></span>
					</div>
					<div class="customer-body">
						<div class="customer-ava">
							<img src="https://gw.alipayobjects.com/zos/rmsportal/XLzrkFskMJbgqhmaLvIW.png">
						</div>
						<div class="customer-name">#(account.accountName)</div>
						<div class="customer-welcome">Welcome #(session.loginMerchUser.name)</div>
						<div class="customer-service">我的友利客服: 0755-2759-5390</div>
						<div class="customer-balance">
							<span>钱包余额(元)</span>
							<div class="customer-balance-no">#(account.balanceShow)</div>
						</div>
						<div class="customer-action-list">
							<span><a href="/customer/index" target="_self">充值</a></span>
							<span><a href="/customer/home/transfer/bank" target="_self">转账</a></span>
							<span><a href="/customer/home/withdraw" target="_self">提现</a></span>
						</div>
						<div class="customer-action-list">
							<span><a href="#(signPdf)" target="_blank">查看网签合同</a></span>
						</div>
					</div>
				</div>
				<div class="notice">
					<div class="notice-title">
						平台公告
						<div class="notice-more">
							<a href="/customer/notice" target="_blank">更多</a>
						</div>
					</div>
					<ul>
						#for(item : notices)
						<li><a href="/customer/notice/goNoticeContentPage?id=#(item.id)" target="_blank"><span></span><span>#(item.title)</span></a></li>
						#end
					</ul>
				</div>
			</div>
			<div class="content-right">
				<div class="ad-banner">
					<div>
						<a target="_blank" href="http://www.laotieniu.com/">
							<img src="/upload/img/112233.jpg">
						</a>
					</div>
				</div>
				<div class="ticket">
					<div class="ticket-title">
						常用收款卡
						#if(youliAccountList.size() > 3)
						<div class="ticket-title-more"><a href="javascript:void(0)" target="_blank">查看更多</a></div>
						#end
					</div>
					<div class="ticket-orders">
						#for(item : youliAccountList)
							#if(for.index < 3)
							<form id="chargeForm#(item.id )" class="layui-form" method="post" action="/customer/home/chargePreview">
							#else
							<form id="chargeForm#(item.id )" class="hide layui-form" method="post" action="/customer/home/chargePreview">
							#end
							<div class="ticket-order-item">
								<input type="hidden" name="youliAccountId" value="#(item.id )">
								<div class="host-info-row"><label>用途</label><span>#(item.alias)</span></div>
								<div class="host-info-row"><label>账号</label><span>#(item.accountNo)</span></div>
								<div class="host-info-row"><label>户名</label><span>#(item.accountName)</span></div>
								<div class="host-info-row"><label>开户行</label><span>#(item.bankName)</span></div>
								<div class="create-order-form">
									<div class="ant-row ant-form-item">
										<div class="ant-col-6 ant-form-item-label">
											<label for="amount" class="ant-form-item-required">金额</label>
										</div>
										<div class="ant-col-14 ant-form-item-control-wrapper">
											<div class="ant-form-item-control ">
												<input type="number" min="0.00" step="0.01" placeholder="金额" name="amount" oninput="if(value.length>10)value=value.slice(0,10)" required lay-verify="amount" lay-verType="tips" class="ant-input ant-input-lg">
											</div>
										</div>
									</div>
									<div class="ant-row ant-form-item">
										<div class="ant-col-6 ant-form-item-label">
											<label for="payer" class="ant-form-item-required">买家名称</label>
										</div>
										<div class="ant-col-14 ant-form-item-control-wrapper">
											<div class="ant-form-item-control ">
												<input type="text" placeholder="请填写买家名称" name="payer" maxlength="50" required lay-verify="required" lay-verType="tips" class="ant-input ant-input-lg">
											</div>
										</div>
									</div>
									<div class="ant-row ant-form-item">
										<div class="ant-col-6 ant-form-item-label">
											<label for="phoneNo" class="">买家电话</label>
										</div>
										<div class="ant-col-14 ant-form-item-control-wrapper">
											<div class="ant-form-item-control ">
												<input type="text" placeholder="选填" name="phoneNo" maxlength="11" class="ant-input ant-input-lg">
											</div>
										</div>
									</div>
									<div class="ant-row ant-form-item">
										<div class="ant-col-6 ant-form-item-label">
											<label for="goodsName" class="">用途</label>
										</div>
										<div class="ant-col-14 ant-form-item-control-wrapper">
											<div class="ant-form-item-control ">
												<input type="text" placeholder="选填" name="goodsName" maxlength="50" class="ant-input ant-input-lg">
											</div>
										</div>
									</div>
									<div class="ant-row bigWriteShow">
									</div>
									<div class="btn-area">
										<button lay-submit lay-filter="wallet-form-submit" class="ant-btn ant-btn-primary ant-btn-lg"><span>制单</span></button>
									</div>
								</div>
							</div>
							</form>
						#end
					</div>
				</div>
			</div>
		</div>
	</div>

	#include("common/footer.html")
</body>
<script src="/static/layui/layui.js"></script>
<script>
layui.config({
	base: '/static/fly/mods/'
}).extend({
	fly: 'index'
}).use(['layer', 'form', 'fly'], function(){
	var $ = layui.$, layer = layui.layer, form = layui.form, fly = layui.fly;
	// 表单验证
	form.verify({
		amount: function(value, item){
    		if(!/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/.test(value)){
    			return "请输入正确的金额";
    		}
    	}
	});
	$(".ticket-order-item input[name='amount']").bind("input",function(event){
		var money = this.value;
		var big = fly.convertCurrency(money)
		$(this).parents(".ticket-order-item").find(".bigWriteShow").html(big);
	});
	$("div.ticket-title-more").on("click", function(){
		$(".ticket-orders form").removeClass("hide");
		$(this).hide();
	});
});
</script>
</html>
